<template>
  <div>
      <div class="tu">
          <img  src="../../public/logo/orange.png" alt="">
      </div>
      
      <van-form @submit="onSubmit">
  <van-field
    v-model="username"
    name="用户名"
    label="手机号"
    placeholder="手机号"
    :rules="[{ required: true, message: '请填写手机号' }]"
  />
 <van-field
  v-model="sms"
  center
  clearable
  label="短信验证码"
  placeholder="请输入短信验证码"
>
  <template #button>
    <van-button size="small" type="primary" class="oragin">发送验证码</van-button>
  </template>
</van-field>
  <div style="margin: 16px;">
    <van-button round block type="info" native-type="submit" class="oragin">点击登录</van-button>
  </div>
</van-form>
  </div>
</template>

<script>
export default {
  data() {
    return {
      username: '',
      sms: '',
    };
  },
  methods: {
    onSubmit(values) {
      console.log('submit', values);
    },
  },
};
</script>

<style>
.tu{
    margin-top: 200px;
    margin-bottom: 50px;
    width: 100%;
    text-align: center;
}
.oragin{
   
    border: none;
}

</style>